<%--
* @version: 1.0
* @author: jinmingming
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" language="javascript" src="./mnHtml/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" language="javascript" src="./mnHtml/js/examglobal.js"></script>
<title>市外模拟交费信息查询</title>
</head>
<body>
	<table align="center">
		<tr>
			<td colspan="10" align="center">市外模拟交费信息查询</td>
		</tr>
		<tr>
			<td>用户名：</td>
			<td><input type="text" name="username" maxlength="20" id="loginname"/></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input type="password" name="password" maxlength="20" id="loginpas"/></td>
		</tr>
		<tr align="center">
			<td colspan="2">
				<input type="submit" value="登陆" id="sub"/>
			</td>
		</tr>
	</table>
	<script type="text/javascript">
	 $("#sub").click(function(){
		var loginname = $.trim($("#loginname").val());
		var loginpas = $.trim($("#loginpas").val());
		$.ajax({
			type:"POST",
			async:false,
			url:PATH + "/ExamServlet?action=ispaymentlogin&username="+encodeURI(loginname)+"&password="+encodeURI(loginpas),
			success:function(data){
				if(data=="true"){
					window.location.href = PATH + "/queryinf.jsp";
				}else{
					alert("用户名或密码错误！");
				}
			}
		});
		}); 
	</script>
	
</body>
</html>